<?php
/**
 * Tests for Cloud model
 *
 * PHP version 5
 *
 * @package    TV
 * @subpackage Tests
 * @author     Mike Bevz <mike.bevz@data2people.com>
 * @copyright  2007-2008 (c) Mike Bevz
 * @license    The BSD License http://data2people.com/license.txt
 * @version    SVN: $Id: CloudTests.php 14 2008-12-01 23:02:54Z michael.bevz $
 *
 *
 */

require_once dirname(__FILE__).'/../testsConfig.php';
require_once 'PHPUnit/Framework.php';

class CloudTests extends PHPUnit_Framework_TestCase
{
    /**
     * Model class
     *
     * @var Cloud
     */
    private $_model;
    
    
    protected function setUp()
    {
        $this->_model = new Cloud();
    }

    protected function tearDown()
    {
      unset($this->_model);
    }
    
    public function testSetGetProperties()
    {
        $expected = 'testWord';
        $this->_model->content = $expected;
        $this->assertEquals($expected, $this->_model->content);
        
        $expected = 5;
        $this->_model->frequency = $expected;
        $this->assertEquals($expected, $this->_model->frequency);
        
        $expected = 165;
        $this->_model->occur = $expected;
        $this->assertEquals($expected, $this->_model->occur);
        
        $expected = '1980-10-13 20:10:10';
        $this->_model->pubdate = $expected;
        $this->assertEquals($expected, $this->_model->pubdate);
        
        $expected = '1230000';
        $this->_model->views = $expected;
        $this->assertEquals($expected, $this->_model->views);
    }
    
      
}